package com.hooper.api.config;

import com.hooper.api.client.ApiClient;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @author Tim Hooper
 * @version 1.0
 * @time 2023/04/11/20:22
 */
@Configuration
@ConfigurationProperties(prefix = "hooper.api.client")
public class ApiClientConfig {

    private String accessKey;


    private String secretKey;

    @Bean
    public ApiClient apiClient() {
        return ApiClient.build(accessKey, secretKey);
    }


    public String getAccessKey() {
        return accessKey;
    }

    public void setAccessKey(String accessKey) {
        this.accessKey = accessKey;
    }

    public String getSecretKey() {
        return secretKey;
    }

    public void setSecretKey(String secretKey) {
        this.secretKey = secretKey;
    }

}
